#!/bin/bash

# update centos repo
\cp -r /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -fsSL 'http://mirrors.163.com/.help/CentOS7-Base-163.repo' -o /etc/yum.repos.d/CentOS-Base.repo
yum clean all
yum makecache

# close selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

